<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>2023年秋季大型综合人才人才才招聘会 - 详情</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome 图标 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    
    <style>
        :root {
            --primary: #4263eb;
            --primary-light: #5a75f0;
            --secondary: #fa5252;
            --success: #38b000;
            --warning: #ff922b;
            --text-primary: #212529;
            --text-secondary: #495057;
            --text-tertiary: #868e96;
            --bg-light: #f8f9fa;
            --bg-white: #ffffff;
            --border-light: #dee2e6;
            --radius: 10px;
            --shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: var(--bg-light);
            color: var(--text-primary);
            padding-top: 56px;
            padding-bottom: 60px;
        }
        
        /* 顶部导航 */
        .top-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 56px;
            background-color: var(--bg-white);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 16px;
            z-index: 1000;
            border-bottom: 1px solid var(--border-light);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }
        
        .nav-title {
            font-size: 18px;
            font-weight: 600;
            text-align: center;
            flex: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .nav-btn {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 20px;
        }
        
        .nav-btn.primary {
            color: var(--primary);
        }
        
        /* 轮播图 */
        .carousel-container {
            position: relative;
            height: 200px;
            overflow: hidden;
        }
        
        .carousel {
            display: flex;
            height: 100%;
            transition: transform 0.5s ease;
        }
        
        .carousel-item {
            min-width: 100%;
            height: 100%;
            position: relative;
        }
        
        .carousel-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .carousel-indicators {
            position: absolute;
            bottom: 10px;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;
            gap: 6px;
        }
        
        .indicator {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.5);
        }
        
        .indicator.active {
            background-color: white;
            width: 24px;
            border-radius: 4px;
        }
        
        .carousel-count {
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: rgba(0, 0, 0, 0.5);
            color: white;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 12px;
        }
        
        /* 招聘会状态 */
        .fair-status {
            position: absolute;
            top: 10px;
            left: 10px;
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 13px;
            font-weight: 500;
            z-index: 10;
        }
        
        .status-upcoming {
            background-color: rgba(56, 176, 0, 0.8);
            color: white;
        }
        
        .status-live {
            background-color: rgba(250, 82, 82, 0.8);
            color: white;
            animation: pulse 1.5s infinite;
        }
        
        .status-ended {
            background-color: rgba(134, 142, 150, 0.8);
            color: white;
        }
        
        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.6; }
            100% { opacity: 1; }
        }
        
        /* 详情内容 */
        .fair-detail {
            background-color: var(--bg-white);
            border-radius: var(--radius) var(--radius) 0 0;
            margin-top: -20px;
            padding: 20px 16px 16px;
            position: relative;
        }
        
        .fair-title {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 12px;
            line-height: 1.3;
        }
        
        .fair-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            font-size: 13px;
            color: var(--text-tertiary);
            margin-bottom: 16px;
        }
        
        .meta-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .fair-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 20px;
        }
        
        .fair-tag {
            padding: 4px 12px;
            border-radius: 4px;
            font-size: 12px;
            background-color: var(--bg-light);
            color: var(--text-secondary);
        }
        
        /* 操作按钮 */
        .action-buttons {
            display: flex;
            gap: 10px;
            margin-bottom: 24px;
        }
        
        .main-action {
            flex: 2;
            padding: 12px 0;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 500;
            background-color: var(--primary);
            color: white;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.2s ease;
        }
        
        .main-action:hover {
            background-color: var(--primary-light);
        }
        
        .secondary-action {
            flex: 1;
            padding: 12px 0;
            border-radius: 8px;
            font-size: 16px;
            background-color: var(--bg-light);
            color: var(--text-secondary);
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }
        
        .secondary-action:hover {
            background-color: #e9ecef;
        }
        
        /* 详情板块 */
        .detail-section {
            background-color: var(--bg-white);
            border-radius: var(--radius);
            padding: 16px;
            margin-bottom: 12px;
            box-shadow: var(--shadow);
        }
        
        .section-header {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .section-header i {
            color: var(--primary);
        }
        
        .section-content {
            font-size: 14px;
            color: var(--text-secondary);
            line-height: 1.6;
        }
        
        .section-content p {
            margin-bottom: 10px;
        }
        
        .section-content p:last-child {
            margin-bottom: 0;
        }
        
        /* 企业列表 */
        .company-list {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-top: 12px;
        }
        
        .company-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 12px 8px;
            border-radius: 8px;
            background-color: var(--bg-light);
            transition: all 0.2s ease;
        }
        
        .company-item:hover {
            background-color: rgba(66, 99, 235, 0.05);
            transform: translateY(-2px);
        }
        
        .company-logo {
            width: 50px;
            height: 50px;
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 8px;
            background-color: white;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .company-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
        
        .company-name {
            font-size: 12px;
            text-align: center;
            color: var(--text-primary);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            line-height: 1.3;
        }
        
        .more-companies {
            margin-top: 12px;
            text-align: center;
        }
        
        .more-btn {
            color: var(--primary);
            font-size: 14px;
            background: none;
            border: none;
            display: flex;
            align-items: center;
            gap: 6px;
            margin: 0 auto;
        }
        
        /* 岗位列表 */
        .job-list {
            margin-top: 12px;
        }
        
        .job-item {
            padding: 12px 0;
            border-bottom: 1px solid var(--border-light);
        }
        
        .job-item:last-child {
            border-bottom: none;
        }
        
        .job-title {
            font-size: 15px;
            font-weight: 500;
            margin-bottom: 6px;
            display: flex;
            justify-content: space-between;
        }
        
        .job-salary {
            color: var(--secondary);
            font-weight: 600;
        }
        
        .job-info {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            font-size: 12px;
            color: var(--text-tertiary);
        }
        
        /* 留言区 */
        .comments-section {
            background-color: var(--bg-white);
            border-radius: var(--radius);
            padding: 16px;
            margin-bottom: 70px;
            box-shadow: var(--shadow);
        }
        
        .comments-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }
        
        .comments-title {
            font-size: 16px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .comments-title i {
            color: var(--primary);
        }
        
        .comments-count {
            color: var(--text-tertiary);
            font-size: 14px;
        }
        
        /* 留言输入框 */
        .comment-input-container {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }
        
        .user-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            overflow: hidden;
            flex-shrink: 0;
        }
        
        .user-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .comment-input-wrapper {
            flex: 1;
            position: relative;
        }
        
        .comment-input {
            width: 100%;
            padding: 10px 12px;
            border-radius: 20px;
            border: 1px solid var(--border-light);
            background-color: var(--bg-light);
            font-size: 14px;
            resize: none;
            height: 40px;
            transition: all 0.2s ease;
        }
        
        .comment-input:focus {
            outline: none;
            border-color: var(--primary);
            background-color: var(--bg-white);
            height: 80px;
        }
        
        .send-comment {
            position: absolute;
            right: 8px;
            bottom: 8px;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background-color: var(--primary);
            color: white;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            opacity: 0.5;
            pointer-events: none;
            transition: all 0.2s ease;
        }
        
        .comment-input:focus + .send-comment,
        .comment-input:not(:placeholder-shown) + .send-comment {
            opacity: 1;
            pointer-events: auto;
        }
        
        /* 留言列表 */
        .comments-list {
            margin-bottom: 16px;
        }
        
        .comment-item {
            display: flex;
            gap: 10px;
            margin-bottom: 16px;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--border-light);
        }
        
        .comment-item:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }
        
        .comment-content {
            flex: 1;
        }
        
        .comment-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 6px;
        }
        
        .comment-author {
            font-size: 13px;
            font-weight: 500;
        }
        
        .comment-time {
            font-size: 12px;
            color: var(--text-tertiary);
        }
        
        .comment-text {
            font-size: 14px;
            margin-bottom: 8px;
            line-height: 1.5;
        }
        
        .comment-actions {
            display: flex;
            gap: 16px;
            font-size: 12px;
        }
        
        .comment-action {
            display: flex;
            align-items: center;
            gap: 4px;
            color: var(--text-tertiary);
            background: none;
            border: none;
        }
        
        .comment-action.liked {
            color: var(--secondary);
        }
        
        /* 回复区 */
        .replies {
            margin-left: 30px;
            margin-top: 12px;
        }
        
        .reply-item {
            display: flex;
            gap: 8px;
            margin-bottom: 12px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--border-light);
        }
        
        .reply-item:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }
        
        .reply-content {
            flex: 1;
            background-color: var(--bg-light);
            padding: 8px 12px;
            border-radius: 8px;
        }
        
        .reply-header {
            display: flex;
            gap: 6px;
            margin-bottom: 4px;
        }
        
        .reply-author {
            font-size: 12px;
            font-weight: 500;
        }
        
        .reply-to {
            font-size: 12px;
            color: var(--text-tertiary);
        }
        
        .reply-text {
            font-size: 13px;
            margin-bottom: 6px;
        }
        
        .reply-actions {
            display: flex;
            gap: 12px;
            font-size: 11px;
        }
        
        .reply-action {
            display: flex;
            align-items: center;
            gap: 3px;
            color: var(--text-tertiary);
            background: none;
            border: none;
        }
        
        .reply-input-container {
            display: flex;
            gap: 8px;
            margin-top: 10px;
        }
        
        .reply-input {
            flex: 1;
            padding: 6px 10px;
            border-radius: 16px;
            border: 1px solid var(--border-light);
            background-color: var(--bg-light);
            font-size: 13px;
        }
        
        .reply-input:focus {
            outline: none;
            border-color: var(--primary);
            background-color: var(--bg-white);
        }
        
        .send-reply {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background-color: var(--primary);
            color: white;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            flex-shrink: 0;
        }
        
        /* 底部操作栏 */
        .bottom-actions {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60px;
            background-color: var(--bg-white);
            display: flex;
            justify-content: space-around;
            align-items: center;
            border-top: 1px solid var(--border-light);
            z-index: 1000;
        }
        
        .bottom-action {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--text-tertiary);
            font-size: 11px;
            gap: 4px;
            text-decoration: none;
            flex: 1;
        }
        
        .bottom-action.active {
            color: var(--primary);
        }
        
        .action-icon {
            font-size: 20px;
        }
        
        /* 提示消息 */
        .toast {
            position: fixed;
            bottom: 70px;
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 8px 16px;
            border-radius: 4px;
            z-index: 9999;
            font-size: 14px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .toast.show {
            opacity: 1;
        }
        
        /* 倒计时 */
        .countdown {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background-color: rgba(250, 82, 82, 0.1);
            color: var(--secondary);
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 13px;
            margin-top: 8px;
        }
        
        /* 地图位置 */
        .location-map {
            width: 100%;
            height: 160px;
            border-radius: 8px;
            overflow: hidden;
            margin-top: 10px;
            position: relative;
            background-color: #e9ecef;
        }
        
        .location-map img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .map-pin {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -100%);
            color: var(--secondary);
            font-size: 24px;
        }
    </style>
</head>
<body>
    <!-- 顶部导航 -->
    <div class="top-nav">
        <button class="nav-btn" id="backBtn">
            <i class="fas fa-arrow-left"></i>
        </button>
        <div class="nav-title">招聘会详情</div>
        <button class="nav-btn primary" id="shareBtn">
            <i class="fas fa-share-alt"></i>
        </button>
    </div>
    
    <!-- 轮播图 -->
    <div class="carousel-container">
        <span class="fair-status status-upcoming">即将开始</span>
        <div class="carousel" id="carousel">
            <div class="carousel-item">
                <img src="https://picsum.photos/id/26/800/400" alt="招聘会现场">
            </div>
            <div class="carousel-item">
                <img src="https://picsum.photos/id/28/800/400" alt="招聘会现场">
            </div>
            <div class="carousel-item">
                <img src="https://picsum.photos/id/42/800/400" alt="招聘会现场">
            </div>
        </div>
        <div class="carousel-indicators">
            <div class="indicator active"></div>
            <div class="indicator"></div>
            <div class="indicator"></div>
        </div>
        <div class="carousel-count">1/3</div>
    </div>
    
    <!-- 详情内容 -->
    <div class="fair-detail">
        <h1 class="fair-title">2023年秋季大型综合人才招聘会</h1>
        
        <div class="fair-meta">
            <div class="meta-item">
                <i class="far fa-calendar-alt"></i>
                <span>10月28日 09:00-16:00</span>
            </div>
            <div class="meta-item">
                <i class="fas fa-map-marker-alt"></i>
                <span>北京国际会议中心</span>
            </div>
            <div class="meta-item">
                <i class="fas fa-building"></i>
                <span>528家企业</span>
            </div>
        </div>
        
        <div class="fair-tags">
            <span class="fair-tag">综合类</span>
            <span class="fair-tag">线下</span>
            <span class="fair-tag">500+企业</span>
            <span class="fair-tag">秋季</span>
            <span class="fair-tag">全职</span>
        </div>
        
        <div class="countdown">
            <i class="far fa-clock"></i>
            <span>距离开始还有: 2天8小时</span>
        </div>
        
        <!-- 操作按钮 -->
        <div class="action-buttons">
            <button class="main-action" id="registerBtn">
                <i class="fas fa-ticket-alt"></i>
                <span>报名参加</span>
            </button>
            <button class="secondary-action" id="collectBtn">
                <i class="far fa-heart"></i>
            </button>
            <button class="secondary-action" id="remindBtn">
                <i class="far fa-bell"></i>
            </button>
        </div>
    </div>
    
    <!-- 招聘会介绍 -->
    <div class="detail-section">
        <div class="section-header">
            <i class="fas fa-info-circle"></i>
            <span>招聘会介绍</span>
        </div>
        <div class="section-content">
            <p>2023年秋季大型综合人才招聘会是本年度规模最大的综合性招聘会之一，汇集了500多家来自各行各业的优质企业。</p>
            <p>本次招聘会涵盖互联网、金融、教育、医疗、制造等多个领域，提供超过10,000个就业岗位，包括全职、兼职和实习机会，满足不同求职者的需求。</p>
            <p>现场将设置简历诊断区、职业规划咨询处和面试技巧分享会，帮助求职者更好地展示自己，提高求职成功率。</p>
        </div>
    </div>
    
    <!-- 举办地点 -->
    <div class="detail-section">
        <div class="section-header">
            <i class="fas fa-map-marker-alt"></i>
            <span>举办地点</span>
        </div>
        <div class="section-content">
            <p>北京国际会议中心</p>
            <p>北京市朝阳区北辰东路8号</p>
            <p>交通路线：地铁8号线奥林匹克公园站B口出，步行10分钟即可到达</p>
            
            <div class="location-map">
                <img src="https://picsum.photos/id/101/800/400" alt="地理位置图">
                <i class="fas fa-map-marker-alt map-pin"></i>
            </div>
        </div>
    </div>
    
    <!-- 参会企业 -->
    <div class="detail-section">
        <div class="section-header">
            <i class="fas fa-building"></i>
            <span>参会企业 (528)</span>
        </div>
        <div class="company-list">
            <div class="company-item">
                <div class="company-logo">
                    <img src="https://picsum.photos/id/1/100/100" alt="企业logo">
                </div>
                <div class="company-name">科技创新有限公司</div>
            </div>
            <div class="company-item">
                <div class="company-logo">
                    <img src="https://picsum.photos/id/2/100/100" alt="企业logo">
                </div>
                <div class="company-name">未来金融集团</div>
            </div>
            <div class="company-item">
                <div class="company-logo">
                    <img src="https://picsum.photos/id/3/100/100" alt="企业logo">
                </div>
                <div class="company-name">智慧教育科技</div>
            </div>
            <div class="company-item">
                <div class="company-logo">
                    <img src="https://picsum.photos/id/4/100/100" alt="企业logo">
                </div>
                <div class="company-name">健康医疗集团</div>
            </div>
            <div class="company-item">
                <div class="company-logo">
                    <img src="https://picsum.photos/id/5/100/100" alt="企业logo">
                </div>
                <div class="company-name">绿色能源科技</div>
            </div>
            <div class="company-item">
                <div class="company-logo">
                    <img src="https://picsum.photos/id/6/100/100" alt="企业logo">
                </div>
                <div class="company-name">环球贸易有限公司</div>
            </div>
        </div>
        <div class="more-companies">
            <button class="more-btn">
                <span>查看全部企业</span>
                <i class="fas fa-chevron-right"></i>
            </button>
        </div>
    </div>
    
    <!-- 热门岗位 -->
    <div class="detail-section">
        <div class="section-header">
            <i class="fas fa-briefcase"></i>
            <span>热门岗位</span>
        </div>
        <div class="job-list">
            <div class="job-item">
                <div class="job-title">
                    <span>前端开发工程师</span>
                    <span class="job-salary">15k-25k</span>
                </div>
                <div class="job-info">
                    <span>科技创新有限公司</span>
                    <span>3-5年</span>
                    <span>本科</span>
                    <span>全职</span>
                </div>
            </div>
            <div class="job-item">
                <div class="job-title">
                    <span>金融分析师</span>
                    <span class="job-salary">20k-30k</span>
                </div>
                <div class="job-info">
                    <span>未来金融集团</span>
                    <span>1-3年</span>
                    <span>硕士</span>
                    <span>全职</span>
                </div>
            </div>
            <div class="job-item">
                <div class="job-title">
                    <span>产品经理</span>
                    <span class="job-salary">18k-28k</span>
                </div>
                <div class="job-info">
                    <span>智慧教育科技</span>
                    <span>3-5年</span>
                    <span>本科</span>
                    <span>全职</span>
                </div>
            </div>
            <div class="job-item">
                <div class="job-title">
                    <span>市场营销专员</span>
                    <span class="job-salary">10k-15k</span>
                </div>
                <div class="job-info">
                    <span>环球贸易有限公司</span>
                    <span>应届毕业生</span>
                    <span>本科</span>
                    <span>全职</span>
                </div>
            </div>
        </div>
        <div class="more-companies">
            <button class="more-btn">
                <span>查看全部岗位</span>
                <i class="fas fa-chevron-right"></i>
            </button>
        </div>
    </div>
    
    <!-- 留言区 -->
    <div class="comments-section">
        <div class="comments-header">
            <div class="comments-title">
                <i class="fas fa-comments"></i>
                <span>留言讨论</span>
            </div>
            <div class="comments-count">32条留言</div>
        </div>
        
        <!-- 留言输入框 -->
        <div class="comment-input-container">
            <div class="user-avatar">
                <img src="https://picsum.photos/id/64/100/100" alt="用户头像">
            </div>
            <div class="comment-input-wrapper">
                <textarea class="comment-input" placeholder="分享你的想法..."></textarea>
                <button class="send-comment" id="sendComment">
                    <i class="fas fa-paper-plane"></i>
                </button>
            </div>
        </div>
        
        <!-- 留言列表 -->
        <div class="comments-list" id="commentsList">
            <!-- 留言1 -->
            <div class="comment-item">
                <div class="user-avatar">
                    <img src="https://picsum.photos/id/91/100/100" alt="用户头像">
                </div>
                <div class="comment-content">
                    <div class="comment-header">
                        <div class="comment-author">张小明</div>
                        <div class="comment-time">2小时前</div>
                    </div>
                    <div class="comment-text">
                        请问需要提前报名吗？还是可以直接到场参加？有没有什么需要特别准备的材料？
                    </div>
                    <div class="comment-actions">
                        <button class="comment-action like-btn">
                            <i class="far fa-thumbs-up"></i>
                            <span>12</span>
                        </button>
                        <button class="comment-action reply-btn">
                            <i class="far fa-comment"></i>
                            <span>回复</span>
                        </button>
                    </div>
                    
                    <!-- 回复区 -->
                    <div class="replies">
                        <div class="reply-item">
                            <div class="user-avatar">
                                <img src="https://picsum.photos/id/22/100/100" alt="官方账号头像">
                            </div>
                            <div class="reply-content">
                                <div class="reply-header">
                                    <div class="reply-author">招聘会官方</div>
                                    <div class="reply-to">回复 张小明</div>
                                </div>
                                <div class="reply-text">
                                    可以直接到场参加，建议提前准备好简历（至少3-5份），带上身份证和学历证明复印件。提前在官网注册可以快速入场哦！
                                </div>
                                <div class="reply-actions">
                                    <button class="reply-action reply-like-btn">
                                        <i class="far fa-thumbs-up"></i>
                                        <span>8</span>
                                    </button>
                                    <button class="reply-action reply-reply-btn">
                                        <i class="far fa-comment"></i>
                                        <span>回复</span>
                                    </button>
                                </div>
                            </div>
                        </div>
                        
                        <!-- 回复输入框 (默认隐藏) -->
                        <div class="reply-input-container reply-input-wrapper" style="display: none;">
                            <input type="text" class="reply-input" placeholder="回复 @张小明...">
                            <button class="send-reply send-reply-btn"></button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 留言2 -->
            <div class="comment-item">
                <div class="user-avatar">
                    <img src="https://picsum.photos/id/65/100/100" alt="用户头像">
                </div>
                <div class="comment-content">
                    <div class="comment-header">
                        <div class="comment-author">李华</div>
                        <div class="comment-time">昨天 15:30</div>
                    </div>
                    <div class="comment-text">
                        去年参加过这个招聘会，感觉企业质量很高，今年准备再去看看有没有更好的机会。希望能遇到合适的公司！
                    </div>
                    <div class="comment-actions">
                        <button class="comment-action like-btn liked">
                            <i class="fas fa-thumbs-up"></i>
                            <span>24</span>
                        </button>
                        <button class="comment-action reply-btn">
                            <i class="far fa-comment"></i>
                            <span>回复</span>
                        </button>
                    </div>
                    
                    <!-- 回复区 -->
                    <div class="replies">
                        <div class="reply-item">
                            <div class="user-avatar">
                                <img src="https://picsum.photos/id/99/100/100" alt="用户头像">
                            </div>
                            <div class="reply-content">
                                <div class="reply-header">
                                    <div class="reply-author">王小红</div>
                                    <div class="reply-to">回复 李华</div>
                                </div>
                                <div class="reply-text">
                                    我也是第二次参加了，去年通过这个招聘会找到了不错的工作，今年想看看有没有更好的发展机会。
                                </div>
                                <div class="reply-actions">
                                    <button class="reply-action reply-like-btn">
                                        <i class="far fa-thumbs-up"></i>
                                        <span>5</span>
                                    </button>
                                    <button class="reply-action reply-reply-btn">
                                        <i class="far fa-comment"></i>
                                        <span>回复</span>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 留言3 -->
            <div class="comment-item">
                <div class="user-avatar">
                    <img src="https://picsum.photos/id/25/100/100" alt="用户头像">
                </div>
                <div class="comment-content">
                    <div class="comment-header">
                        <div class="comment-author">赵晓燕</div>
                        <div class="comment-time">3天前</div>
                    </div>
                    <div class="comment-text">
                        有没有软件开发相关的岗位比较多的企业？想重点关注一下这方面的公司，谢谢！
                    </div>
                    <div class="comment-actions">
                        <button class="comment-action like-btn">
                            <i class="far fa-thumbs-up"></i>
                            <span>8</span>
                        </button>
                        <button class="comment-action reply-btn">
                            <i class="far fa-comment"></i>
                            <span>回复</span>
                        </button>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 加载更多留言 -->
        <div class="more-companies">
            <button class="more-btn" id="loadMoreComments">
                <span>加载更多留言</span>
                <i class="fas fa-chevron-down"></i>
            </button>
        </div>
    </div>
    
    <!-- 底部操作栏 -->
    <div class="bottom-actions">
        <a href="#" class="bottom-action">
            <i class="fas fa-home action-icon"></i>
            <span>首页</span>
        </a>
        <a href="#" class="bottom-action active">
            <i class="fas fa-calendar-alt action-icon"></i>
            <span>招聘会</span>
        </a>
        <a href="#" class="bottom-action">
            <i class="fas fa-briefcase action-icon"></i>
            <span>职位</span>
        </a>
        <a href="#" class="bottom-action">
            <i class="fas fa-user action-icon"></i>
            <span>我的</span>
        </a>
    </div>
    
    <!-- 提示消息 -->
    <div class="toast" id="toast"></div>
    
    <!-- Bootstrap JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // DOM元素
        const backBtn = document.getElementById('backBtn');
        const shareBtn = document.getElementById('shareBtn');
        const registerBtn = document.getElementById('registerBtn');
        const collectBtn = document.getElementById('collectBtn');
        const remindBtn = document.getElementById('remindBtn');
        const carousel = document.getElementById('carousel');
        const indicators = document.querySelectorAll('.indicator');
        const carouselCount = document.querySelector('.carousel-count');
        const sendCommentBtn = document.getElementById('sendComment');
        const commentInput = document.querySelector('.comment-input');
        const commentsList = document.getElementById('commentsList');
        const loadMoreCommentsBtn = document.getElementById('loadMoreComments');
        const toast = document.getElementById('toast');
        
        // 当前轮播图索引
        let currentSlide = 0;
        const totalSlides = document.querySelectorAll('.carousel-item').length;
        
        // 返回按钮
        backBtn.addEventListener('click', () => {
            history.back();
        });
        
        // 轮播图功能
        function showSlide(index) {
            if (index >= totalSlides) currentSlide = 0;
            if (index < 0) currentSlide = totalSlides - 1;
            
            carousel.style.transform = `translateX(-${currentSlide * 100}%)`;
            
            // 更新指示器
            indicators.forEach((indicator, i) => {
                if (i === currentSlide) {
                    indicator.classList.add('active');
                } else {
                    indicator.classList.remove('active');
                }
            });
            
            // 更新计数
            carouselCount.textContent = `${currentSlide + 1}/${totalSlides}`;
        }
        
        // 自动轮播
        let slideInterval = setInterval(() => {
            currentSlide++;
            showSlide(currentSlide);
        }, 5000);
        
        // 点击指示器切换轮播
        indicators.forEach((indicator, index) => {
            indicator.addEventListener('click', () => {
                clearInterval(slideInterval);
                currentSlide = index;
                showSlide(currentSlide);
                
                // 重新开始自动轮播
                slideInterval = setInterval(() => {
                    currentSlide++;
                    showSlide(currentSlide);
                }, 5000);
            });
        });
        
        // 分享功能
        shareBtn.addEventListener('click', () => {
            showToast('分享链接已复制到剪贴板');
        });
        
        // 报名功能
        registerBtn.addEventListener('click', function() {
            if (this.querySelector('span').textContent === '报名参加') {
                this.innerHTML = '<i class="fas fa-check"></i><span>已报名</span>';
                this.style.backgroundColor = var(--success);
                showToast('报名成功！我们会发送确认信息到您的手机');
            } else {
                this.innerHTML = '<i class="fas fa-ticket-alt"></i><span>报名参加</span>';
                this.style.backgroundColor = '';
                showToast('已取消报名');
            }
        });
        
        // 收藏功能
        collectBtn.addEventListener('click', function() {
            const icon = this.querySelector('i');
            if (icon.classList.contains('far')) {
                icon.classList.remove('far');
                icon.classList.add('fas');
                this.style.color = var(--secondary);
                showToast('已收藏');
            } else {
                icon.classList.remove('fas');
                icon.classList.add('far');
                this.style.color = '';
                showToast('已取消收藏');
            }
        });
        
        // 提醒功能
        remindBtn.addEventListener('click', function() {
            const icon = this.querySelector('i');
            if (icon.classList.contains('far')) {
                icon.classList.remove('far');
                icon.classList.add('fas');
                this.style.color = var(--primary);
                showToast('已设置提醒');
            } else {
                icon.classList.remove('fas');
                icon.classList.add('far');
                this.style.color = '';
                showToast('已取消提醒');
            }
        });
        
        // 发送留言
        sendCommentBtn.addEventListener('click', function() {
            const commentText = commentInput.value.trim();
            if (commentText) {
                // 创建新留言元素
                const now = new Date();
                const timeString = `${now.getHours()}:${now.getMinutes().toString().padStart(2, '0')}`;
                
                const newComment = document.createElement('div');
                newComment.className = 'comment-item';
                newComment.innerHTML = `
                    <div class="user-avatar">
                        <img src="https://picsum.photos/id/64/100/100" alt="用户头像">
                    </div>
                    <div class="comment-content">
                        <div class="comment-header">
                            <div class="comment-author">我</div>
                            <div class="comment-time">刚刚</div>
                        </div>
                        <div class="comment-text">
                            ${commentText}
                        </div>
                        <div class="comment-actions">
                            <button class="comment-action like-btn">
                                <i class="far fa-thumbs-up"></i>
                                <span>0</span>
                            </button>
                            <button class="comment-action reply-btn">
                                <i class="far fa-comment"></i>
                                <span>回复</span>
                            </button>
                        </div>
                    </div>
                `;
                
                // 添加到留言列表顶部
                commentsList.insertBefore(newComment, commentsList.firstChild);
                
                // 清空输入框
                commentInput.value = '';
                
                // 更新留言计数
                updateCommentsCount(1);
                
                // 绑定新留言的事件
                bindCommentEvents(newComment);
                
                showToast('留言发布成功');
            }
        });
        
        // 更新留言计数
        function updateCommentsCount(change) {
            const countElement = document.querySelector('.comments-count');
            let count = parseInt(countElement.textContent);
            count += change;
            countElement.textContent = `${count}条留言`;
        }
        
        // 加载更多留言
        loadMoreCommentsBtn.addEventListener('click', function() {
            this.innerHTML = '<span>加载中...</span><i class="fas fa-spinner fa-spin"></i>';
            
            // 模拟加载延迟
            setTimeout(() => {
                // 添加3条新留言
                for (let i = 0; i < 3; i++) {
                    const randomId = Math.floor(Math.random() * 100);
                    const randomLikes = Math.floor(Math.random() * 30);
                    const daysAgo = Math.floor(Math.random() * 10) + 3;
                    
                    const newComment = document.createElement('div');
                    newComment.className = 'comment-item';
                    newComment.innerHTML = `
                        <div class="user-avatar">
                            <img src="https://picsum.photos/id/${randomId}/100/100" alt="用户头像">
                        </div>
                        <div class="comment-content">
                            <div class="comment-header">
                                <div class="comment-author">用户${randomId}</div>
                                <div class="comment-time">${daysAgo}天前</div>
                            </div>
                            <div class="comment-text">
                                这个招聘会看起来很不错，希望能找到合适的工作机会，祝大家都能顺利找到满意的工作！
                            </div>
                            <div class="comment-actions">
                                <button class="comment-action like-btn">
                                    <i class="far fa-thumbs-up"></i>
                                    <span>${randomLikes}</span>
                                </button>
                                <button class="comment-action reply-btn">
                                    <i class="far fa-comment"></i>
                                    <span>回复</span>
                                </button>
                            </div>
                        </div>
                    `;
                    
                    commentsList.appendChild(newComment);
                    bindCommentEvents(newComment);
                }
                
                updateCommentsCount(3);
                this.innerHTML = '<span>没有更多留言了</span><i class="fas fa-chevron-down"></i>';
                this.disabled = true;
                this.style.opacity = '0.7';
                
            }, 1500);
        });
        
        // 绑定留言相关事件
        function bindCommentEvents(commentElement) {
            // 点赞功能
            const likeBtn = commentElement.querySelector('.like-btn');
            if (likeBtn) {
                likeBtn.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    const countElement = this.querySelector('span');
                    let count = parseInt(countElement.textContent);
                    
                    if (icon.classList.contains('far')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        this.classList.add('liked');
                        countElement.textContent = count + 1;
                        showToast('点赞成功');
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        this.classList.remove('liked');
                        countElement.textContent = count - 1;
                        showToast('已取消点赞');
                    }
                });
            }
            
            // 回复功能
            const replyBtn = commentElement.querySelector('.reply-btn');
            if (replyBtn) {
                replyBtn.addEventListener('click', function() {
                    const commentContent = this.closest('.comment-content');
                    const replies = commentContent.querySelector('.replies') || 
                                   (() => {
                                       const div = document.createElement('div');
                                       div.className = 'replies';
                                       commentContent.appendChild(div);
                                       return div;
                                   })();
                    
                    const replyInputWrapper = replies.querySelector('.reply-input-wrapper');
                    
                    // 如果回复框已存在则聚焦，否则创建
                    if (replyInputWrapper) {
                        replyInputWrapper.querySelector('.reply-input').focus();
                    } else {
                        const authorName = commentContent.querySelector('.comment-author').textContent;
                        const inputContainer = document.createElement('div');
                        inputContainer.className = 'reply-input-container reply-input-wrapper';
                        inputContainer.innerHTML = `
                            <input type="text" class="reply-input" placeholder="回复 @${authorName}...">
                            <button class="send-reply send-reply-btn"><i class="fas fa-paper-plane"></i></button>
                        `;
                        replies.appendChild(inputContainer);
                        
                        // 聚焦输入框
                        inputContainer.querySelector('.reply-input').focus();
                        
                        // 绑定发送回复事件
                        inputContainer.querySelector('.send-reply-btn').addEventListener('click', function() {
                            const replyInput = inputContainer.querySelector('.reply-input');
                            const replyText = replyInput.value.trim();
                            
                            if (replyText) {
                                // 创建新回复
                                const newReply = document.createElement('div');
                                newReply.className = 'reply-item';
                                newReply.innerHTML = `
                                    <div class="user-avatar">
                                        <img src="https://picsum.photos/id/64/100/100" alt="用户头像">
                                    </div>
                                    <div class="reply-content">
                                        <div class="reply-header">
                                            <div class="reply-author">我</div>
                                            <div class="reply-to">回复 ${authorName}</div>
                                        </div>
                                        <div class="reply-text">
                                            ${replyText}
                                        </div>
                                        <div class="reply-actions">
                                            <button class="reply-action reply-like-btn">
                                                <i class="far fa-thumbs-up"></i>
                                                <span>0</span>
                                            </button>
                                            <button class="reply-action reply-reply-btn">
                                                <i class="far fa-comment"></i>
                                                <span>回复</span>
                                            </button>
                                        </div>
                                    </div>
                                `;
                                
                                // 添加到回复列表顶部
                                replies.insertBefore(newReply, inputContainer);
                                
                                // 清空并隐藏回复框
                                replyInput.value = '';
                                inputContainer.style.display = 'none';
                                
                                // 绑定回复的事件
                                bindReplyEvents(newReply);
                                
                                showToast('回复成功');
                            }
                        });
                    }
                });
            }
        }
        
        // 绑定回复相关事件
        function bindReplyEvents(replyElement) {
            // 回复点赞
            const likeBtn = replyElement.querySelector('.reply-like-btn');
            if (likeBtn) {
                likeBtn.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    const countElement = this.querySelector('span');
                    let count = parseInt(countElement.textContent) || 0;
                    
                    if (icon.classList.contains('far')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        countElement.textContent = count + 1;
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        countElement.textContent = count - 1;
                    }
                });
            }
            
            // 回复的回复功能
            const replyBtn = replyElement.querySelector('.reply-reply-btn');
            if (replyBtn) {
                replyBtn.addEventListener('click', function() {
                    const replyContent = this.closest('.reply-content');
                    const authorName = replyContent.querySelector('.reply-author').textContent;
                    const replies = this.closest('.replies');
                    
                    // 查找现有的回复框并移除
                    const existingInput = replies.querySelector('.reply-input-wrapper');
                    if (existingInput) existingInput.remove();
                    
                    // 创建新的回复框
                    const inputContainer = document.createElement('div');
                    inputContainer.className = 'reply-input-container reply-input-wrapper';
                    inputContainer.innerHTML = `
                        <input type="text" class="reply-input" placeholder="回复 @${authorName}...">
                        <button class="send-reply send-reply-btn"><i class="fas fa-paper-plane"></i></button>
                    `;
                    
                    // 添加到当前回复后面
                    replies.insertBefore(inputContainer, replyElement.nextSibling);
                    
                    // 聚焦输入框
                    inputContainer.querySelector('.reply-input').focus();
                    
                    // 绑定发送回复事件
                    inputContainer.querySelector('.send-reply-btn').addEventListener('click', function() {
                        const replyInput = inputContainer.querySelector('.reply-input');
                        const replyText = replyInput.value.trim();
                        
                        if (replyText) {
                            // 创建新回复
                            const newReply = document.createElement('div');
                            newReply.className = 'reply-item';
                            newReply.innerHTML = `
                                <div class="user-avatar">
                                    <img src="https://picsum.photos/id/64/100/100" alt="用户头像">
                                </div>
                                <div class="reply-content">
                                    <div class="reply-header">
                                        <div class="reply-author">我</div>
                                        <div class="reply-to">回复 ${authorName}</div>
                                    </div>
                                    <div class="reply-text">
                                        ${replyText}
                                    </div>
                                    <div class="reply-actions">
                                        <button class="reply-action reply-like-btn">
                                            <i class="far fa-thumbs-up"></i>
                                            <span>0</span>
                                        </button>
                                        <button class="reply-action reply-reply-btn">
                                            <i class="far fa-comment"></i>
                                            <span>回复</span>
                                        </button>
                                    </div>
                                </div>
                            `;
                            
                            // 添加到回复列表
                            replies.insertBefore(newReply, inputContainer);
                            
                            // 清空并隐藏回复框
                            replyInput.value = '';
                            inputContainer.remove();
                            
                            // 绑定回复的事件
                            bindReplyEvents(newReply);
                            
                            showToast('回复成功');
                        }
                    });
                });
            }
        }
        
        // 初始化绑定现有留言和回复的事件
        document.querySelectorAll('.comment-item').forEach(comment => {
            bindCommentEvents(comment);
        });
        
        document.querySelectorAll('.reply-item').forEach(reply => {
            bindReplyEvents(reply);
        });
        
        // 提示消息功能
        function showToast(message) {
            toast.textContent = message;
            toast.classList.add('show');
            
            setTimeout(() => {
                toast.classList.remove('show');
            }, 2000);
        }
        
        // 评论输入框按Enter发送
        commentInput.addEventListener('keydown', function(e) {
            if (e.key === 'Enter' && !e.shiftKey) {
                e.preventDefault();
                sendCommentBtn.click();
            }
        });
    </script>
</body>
</html>

